package com.jsp.service.impl;

import com.jsp.dao.StudentDao;
import com.jsp.dao.impl.StudentDaoImpl;
import com.jsp.pojo.Student;
import com.jsp.service.StudentService;

import java.util.List;

/**
 * @author wzm
 * @create 2023-11-09 15:33
 * project_name:web2310
 * @Description
 */
public class StudentServiceImpl implements StudentService {
    private StudentDao studentDao = new StudentDaoImpl();
    @Override
    public List<Student> FindByAll() {
        return studentDao.selectList();
    }

    @Override
    public boolean removeById(Integer id) {
        return studentDao.deleteById(id) > 0;
    }
}
